@import "./common/mixin.scss";
@import "./common/vars.scss";
@import "./common/utils.scss";

@include module(notification) {
  font-size: 0;
  width: 300px;
  padding: 15px 20px;
  box-sizing: border-box;
  line-height: 14px;
  font-size: 14px;
  color: #333;
  background: mix($--color-white, $--color-info, 80%);
  border-radius: 10px;
  position: fixed;
  right: 24px;
  transition: all 0.4s ease;
  line-height: 1.5;
  top: 20px;
  z-index: 1001;
  background: white;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  border: solid 1px #eee;
  .content {
    flex: 1;
  }
  .title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    display: inline-block;
    vertical-align: top;
    line-height: 30px;
  }
  .message {
    display: inline-block;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 4px;
    white-space: wrap;
    word-break: break-all;
    word-break: break-all;
  }
  @include modifier(success) {
    & > i {
      color: $--color-success;
    }
  }
  @include modifier(warning) {
    & > i {
      color: $--color-warning;
    }
  }
  @include modifier(error) {
    & > i {
      color: $--color-danger;
    }
  }
  & > i {
    font-size: 22px;
    margin-right: 10px;
    line-height: 30px;
  }
}
